
//
//  UIColot+Externsion.swift
//  LoveBeen
//
//  Created by pg on 2017/8/6.
//  Copyright © 2017年 pg. All rights reserved.
//

import UIKit


extension UIColor {
    
    class func zm_colorWithHex(hexColor: UInt32)->UIColor{
        
        let r = (hexColor & 0xFF0000) >> 16;
        
        let g = (hexColor & 0x00FF00) >> 8;
        
        let b = (hexColor & 0x0000FF);
        
        return UIColor(red: CGFloat(r)/255.0, green: CGFloat(g) / 255.0, blue: CGFloat(b) / 255.0, alpha: 1)
   }
    
    
    
}



